| |
Exercise: partition a drive
Run command fdisk on /dev/sdb:
At the prompt, type ? to see the partitioning commands.
Type d and select all the patitions, one after another.
Type n, choose primary, 1. Accept the lower boundary, then put
250 GB for the upper partition boundary.
Toggle the partition type to "Linux filesystem".
Similarly, create the second partition with the boundaries between 250 GB and
500 GB
Type w to write the partition table and exit the fdisk.
There are about 15 different file systems supported on Linux. The most common one is ext4.
Create ext4 file system:
Create a mounting point, then mount the file system:
Make sure /driveb1 is mounted:
Unmount the drive, then mount it again:
The drive is ready to host data. Keep in mind that it can be removed from
the system, then installed on the other computer and mounted. Data can be stolen along with the drive.
|
|